package org.reference.generic;


import org.reference.generic.base.Manager;
import org.reference.generic.base.Parameter;
import org.reference.generic.work.Machine;

/**
 * 
 */
public class ProcessManager extends Manager {

    /**
     * 
     */
    public ProcessManager() {
    }

    /**
     * 
     */
    private Parameter generation;

    /**
     * 
     */
    private int processCompleteCount;

    /**
     * 
     */
    private OnCompleteListenner onProcessCompleteListenner;

    /**
     * @param result
     */
    public int execute() {
    	int result = 0;
    	
    	return result;
    }

    /**
     * 
     */
    public void printInputInformation() {
       }

    /**
     * 
     */
    public void printResultInformation() {
        // TODO implement here
    }
 
	@Override
	public void init(Parameter[] parameters) {
		for (Parameter param: parameters) {
			if(param.getName().equalsIgnoreCase(Parameter.TYPE_GENERATION)) {
				generation = new Parameter();
				generation.setValue(param.getValue());
			
				Process process = new Process();
				process.setOnCompleteListenner(onProcessCompleteListenner);
				process.init(parameters);
				itemList.add(process);
				
			}
		}
		
	
		
	}
	
	@Override
	public Parameter[] getResult() {
		// TODO Auto-generated method stub
		return null;
	}



}